// ESMA 内置对象，常用的，更多的自行查看文档
const variable: Number = new Number(101)
const sayHello: String = new String('hello')
const bool: Boolean = new Boolean(true)
const obj: Object = new Object()
const regexp: RegExp = new RegExp(/\d/)
const date: Date = new Date()
const err: Error = new Error()
const fn: Function = new Function()
// 鼠标瞄上来，可以看TS给我们推断的，也可以手动写
// const promise: Promis(number) = new Promise(r => r(101))
const promise = new Promise(r => {
  r(101)
})

// DOM 内置对象，常用的 Element HTMLDivElement  NodeList...
const XHR: XMLHttpRequest = new XMLHttpRequest()
const hist: History = history
const loca: Location = location
const local: Storage = localStorage

const divElement: HTMLDivElement = document.createElement('div')
const div2Element: Element = document.createElement('div') // 这样也是ok的
const h1Element: HTMLHeadingElement = document.createElement('h1')
const pElement: HTMLParagraphElement = document.createElement('p')
// ...

export {}
